#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpServer> //服务器对象
#include <QTcpSocket>

#include <mythread.h>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void  newClientHander();
    void  clientInfoSlot();//***

private:
    Ui::Widget *ui;
    QTcpServer *sever;//服务器对象
};
#endif // WIDGET_H











